
@extends('Home.common.header')
<br/><br/><br/><br/>


<!-- 页面标记 -->
<div style="float:left;margin-left:130px;">
	<mark style="font-size:18px;">商品销量排行榜</mark>
</div>


<!-- 商品表格 -->
<div class="bs-example" data-example-id="hoverable-table" style="width:45%;margin:0 auto;">
    <table class="table table-hover">
		<thead>
			<tr>
			  <th>商品</th>
			  <th>预览</th>
			  <th>销量</th>
			</tr>
		</thead>
		<tbody>
			@forelse( $coms as $com_info )
				<tr>
				    <td>{{ $com_info['name'] }}</td>
				    <td>
						<a href="{{ url('/comDetail') }}/{{ $com_info['id'] }}" target="_blank" >
							<img style='width:100px;' src="{{ asset('/images/coms') }}/{{ $com_info['pic_url'] }}" />
						</a>
					</td>
				    <td>{{ $com_info['num'] }}件</td>
				</tr>
			@empty
				<tr>
					<td scope="row"><h2>暂无数据</h2></td>
				</tr>
			@endforelse
		</tbody>
    </table>
</div>

@extends('Home.common.footer')